// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SALES_SHIP_ITEM
// * CreateDate    : 2014-03-27 22:08:57
// * Creater       : CodeSmith
// * LastChangeDate: 2014-03-27 22:08:57
// * LastChanger   : 2014-03-27 22:08:57
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.Data;
using ESOL.Common.Entity;

namespace ESOL.Business.Sales
{
/// <summary>
    /// SalesShipItem
    /// </summary>
    public partial class SalesShipItemBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objSalesShipItemEntity">Entity</param>
        /// <returns>Entity</returns>
        public static SalesShipItemEntity GetSalesShipItem(SalesShipItemEntity objSalesShipItemEntity)
        {
            return DataAccess.SelectSingle<SalesShipItemEntity>(objSalesShipItemEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objSalesShipItemEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertSalesShipItem(SalesShipItemEntity objSalesShipItemEntity)
        {
            return DataAccess.Insert(objSalesShipItemEntity);
        }

        public static bool InsertSalesShipItem(List<SalesShipItemEntity> objSalesShipItemEntityList)
        {
            return DataAccess.Insert(objSalesShipItemEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objSalesShipItemEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateSalesShipItem(SalesShipItemEntity objSalesShipItemEntity)
        {
            return DataAccess.Update(objSalesShipItemEntity);
        }

        public static bool UpdateSalesShipItem(List<SalesShipItemEntity> objSalesShipItemEntityList)
        {
            return DataAccess.Update<SalesShipItemEntity>(objSalesShipItemEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objSalesShipItemEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteSalesShipItem(SalesShipItemEntity objSalesShipItemEntity)
        {
            return DataAccess.Delete(objSalesShipItemEntity);
        }

        public static bool DeleteSalesShipItem(List<SalesShipItemEntity> objSalesShipItemEntityList)
        {
            return DataAccess.Delete<SalesShipItemEntity>(objSalesShipItemEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetSalesShipItemAll()
        {
            return DataAccess.SelectAllDataSet<SalesShipItemEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<SalesShipItemEntity> GetSalesShipItemAllList()
        {
            return DataAccess.SelectAll<SalesShipItemEntity>();
        }
        #endregion
	}
	
	
}	

